package net.wofly.sale.signin.service;

import net.wofly.common.persistence.PageWrapper;
import net.wofly.common.util.ReturnBean;
import net.wofly.sale.signin.domain.SignIn;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author siqingwei
 */
public interface ISignInService {

	/**
	 * 增加或修改
	 * 
	 * @param entity
	 * @return
	 */
	SignIn save(SignIn entity);

	/**
	 * 删除
	 * 
	 * @param entity
	 * @return
	 */
	void delete(SignIn entity);

	/**
	 * 根据主键ID删除
	 * 
	 * @param key
	 * @return
	 */
	void delete(String key);

	/**
	 * 根据主键查询
	 * 
	 * @param key
	 * @return
	 */
	SignIn findOne(String key);
	
	List<SignIn> save(List<SignIn> entityList) ;

	/**
	 *
	 * @param employeeID
	 * @param fromTime
	 * @param toTime
	 */
	ReturnBean<PageWrapper<SignIn>> getSignIn(Integer pageNum, Integer pageSize, String employeeID, Long fromTime, Long toTime);

	/**
	 * 签到
	 * <ul>
	 * 	<li></li>
	 * </ul>
	 *
	 * @param signIn
	 */
	ReturnBean<String> signIn(SignIn signIn);

	/**
	 * 上传签到图片
	 * <ul>
	 * 	<li>返回图片存放路径</li>
	 * 	<li>根据上传时间计算图片存放位置</li>
	 * </ul>
	 *
	 * @param file
	 */
	ReturnBean<String> uploadPic(MultipartFile file, String path);

}
